#include "trap.h"
    .set noreorder
    .set noat 
    .global main 

    .text 
main:
    li  $v0, 0x11223344
    li $t0, 0x80000000
    sw $v0, 0($t0)    

    syscall

    lw $v0, 0($t0)
    li $t1, 0x44332211
    and $t2, $v0, $t1
    li $t3, 0x222200
    beq $t2, $t3, TARGET

.org 0x380
    li $v0, 0x11223344
    li $s0, 0xe
    mfc0 $s1, $14
    mtc0 $s1, $0
.set mips32
    eret

TARGET:
    HIT_GOOD_TRAP